﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
//using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using WellLogShower;

namespace LoggingSender
{
    public partial class Form1 : Form
    {
        private WellData wellData = new WellData(6);

        public Form1()
        {
            InitializeComponent();
            //wellData = new WellData(6);
        }

        public ListBox listbox {
            get {return listBox1;}
        }

        public WellData Data {
            set { wellData = value; }
            get { return wellData; }
        }

        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            RectangleF rect = ClientRectangle;
            Graphics g = e.Graphics; //创建画板,这里的画板是由Form提供的.

            WellDrawerImpl impl = new WellDrawerImpl();
            

            impl.Draw(g, rect, wellData);
        }
    }
}
